package com.xja.dubbo.service.impl;

import com.xja.dubbo.entity.Easybuy_seller;
import com.xja.dubbo.mapper.Easybuy_sellerMapper;
import com.xja.dubbo.service.SellerService;
import org.apache.dubbo.config.annotation.Service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import java.net.InterfaceAddress;

/**
 * @author ycz
 * @create 2021-12-14-14:33
 */
@Component
@Service(interfaceClass = SellerService.class)
public class SellerServiceImpl implements SellerService {

    private Logger logger = LoggerFactory.getLogger(SellerServiceImpl.class);

    @Autowired
    private Easybuy_sellerMapper easybuy_sellerMapper;

    @Override
    @Transactional(readOnly = true)
    public Easybuy_seller findSellerByName(String name) throws Exception {
        Easybuy_seller easybuy_seller = easybuy_sellerMapper.selectByName(name);

        return easybuy_seller;
    }
}
